import React from "react";
import Header from "@/components/Header";
import { getChildren } from "@/routes/routerConfig";
import { useRoutes } from "react-router-dom";
/**
 * 前台
 * @returns
 */
export default function Front() {
  const routes = getChildren("front");
  return (
    <div>
      <Header />
      <div style={{ padding: 50 }}>{useRoutes(routes)}</div>
    </div>
  );
}
